package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}
type Video struct {
	gorm.Model
	Title     string `gorm:"type:varchar(50)"`
	Content   string `gorm:"type:text"`
	Author    string `gorm:"type:varchar(50)"`
	LikeCount int    `gorm:"type:int"`
}
type Like struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Vid int `gorm:"type:int"`
}
